package com.easy.bean;

import lombok.Data;

/*
字段名	类型	说明	约束
fruit_id	INT	水果ID（主键）	PRIMARY KEY, AUTO_INCREMENT
fruit_name	VARCHAR(50)	水果名称	NOT NULL
variety	VARCHAR(50)	品种
origin	VARCHAR(100)	产地	NOT NULL
farmer_id	INT	关联农户ID	FOREIGN KEY REFERENCES user(user_id)
unit_price	DECIMAL(10,2)	单价(元/公斤)	NOT NULL
 */
@Data
public class Fruit {
    private int fruit_id;
    private String fruit_name;
    private String variety;
    private String origin;
    private int farmer_id;
    private double unit_price;
    private String description;
    private byte is_availiable;
    private byte isdel;
    private String img_url;
}
